package openjdk.stream;

import java.util.ArrayList;
import java.util.IntSummaryStatistics;
import java.util.List;
import java.util.Map;

public class GrpBySecond {

    public static void main(String[] args) {
        new GrpBySecond().getGrped();
    }

    private Map<String, Map<String, IntSummaryStatistics>> getGrped() {
        List<Entry> dataList = new ArrayList<>();
        dataList.add(new Entry());
        dataList.add(new Entry());
        dataList.add(new Entry());
        dataList.add(new Entry());

        /*Map<String, Map<String, IntSummaryStatistics>> grpdStats =
                dataList.stream()
                        .collect(CollectorsDemo.groupingBy(Entry::getGroup0),
                                CollectorsDemo.groupingBy(Entry::getGroup1,
                                        CollectorsDemo.summarizingInt(Entry::getIntData)));
        return grpdStats;*/

        return null;
    }
}





